package cn.edu.sgu.www.mhxysy.mapper.qiling;

import cn.edu.sgu.www.mhxysy.vo.Imager;
import cn.edu.sgu.www.mhxysy.entity.qiling.Qiling;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Repository
public interface QilingMapper extends BaseMapper<Qiling> {

    /**
     * 通过装备ID查询器灵的图片
     * @param equipmentId 装备ID
     * @return List<Imager>
     */
    Imager selectImage(@Param("equipmentId") String equipmentId);

    /**
     * 查询器灵列表
     * @param type 装备类型
     * @param roleId 角色ID
     * @param categoryId 装备类型ID
     * @return List<Qiling>
     */
    List<Qiling> select(
            @Param("type") Integer type,
            @Param("roleId") String roleId,
            @Param("categoryId") Integer categoryId
    );
}